package com.openecommerce.manager.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.openecommerce.api.service.DemoService;



/**
 *
 * @auth Tommy
 * Created on 2013-7-8
 */
@Controller
public class MainController {

	@Resource
	private DemoService demoService;
	private static final Logger logger = LoggerFactory.getLogger(MainController.class);

	@RequestMapping("index.htm")
	@ResponseBody
	public String getUser() {
		logger.debug("###----> I'am the client of consumer!");
	    demoService.sayHi();
		return "success";
	}
	
}

